package com.yllt4cloud.common.gateway.annotation;

import com.yllt4cloud.common.gateway.configuration.DynamicRouteAutoConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @author yaoxj
 * @date 2019/5/31
 * 增加一个路由管理模块，参考GatewayControllerEndpoint实现，启动时加载数据库中配置文件到Redis
 *  网关模块重写RouteDefinitionRepository，getRouteDefinitions（）取Redis中读取即可实现
 * <p>
 * 开启动态路由注解
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Import(DynamicRouteAutoConfiguration.class)
public @interface EnableYlltDynamicRoute {
}
